function wn(e, t) {
  const n = /* @__PURE__ */ Object.create(null), o = e.split(",");
  for (let r = 0; r < o.length; r++)
    n[o[r]] = !0;
  return t ? (r) => !!n[r.toLowerCase()] : (r) => !!n[r];
}
const P = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Nn = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], $t = () => {
}, bn = /^on[^a-z]/, On = (e) => bn.test(e), C = Object.assign, vn = (e, t) => {
  const n = e.indexOf(t);
  n > -1 && e.splice(n, 1);
}, Sn = Object.prototype.hasOwnProperty, m = (e, t) => Sn.call(e, t), _ = Array.isArray, W = (e) => De(e) === "[object Map]", Tt = (e) => De(e) === "[object Set]", w = (e) => typeof e == "function", x = (e) => typeof e == "string", Le = (e) => typeof e == "symbol", N = (e) => e !== null && typeof e == "object", yn = (e) => N(e) && w(e.then) && w(e.catch), Pt = Object.prototype.toString, De = (e) => Pt.call(e), Mt = (e) => De(e).slice(8, -1), At = (e) => De(e) === "[object Object]", Ge = (e) => x(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Ye = (e) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (n) => t[n] || (t[n] = e(n));
}, Vn = /-(\w)/g, ve = Ye((e) => e.replace(Vn, (t, n) => n ? n.toUpperCase() : "")), se = Ye(
  (e) => e.charAt(0).toUpperCase() + e.slice(1)
), xn = Ye(
  (e) => e ? `on${se(e)}` : ""
), ie = (e, t) => !Object.is(e, t), Cn = (e, t, n) => {
  Object.defineProperty(e, t, {
    configurable: !0,
    enumerable: !1,
    value: n
  });
};
let pt;
const Fe = () => pt || (pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
function Qe(e) {
  if (_(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++) {
      const o = e[n], r = x(o) ? $n(o) : Qe(o);
      if (r)
        for (const s in r)
          t[s] = r[s];
    }
    return t;
  } else {
    if (x(e))
      return e;
    if (N(e))
      return e;
  }
}
const Rn = /;(?![^(]*\))/g, Dn = /:([^]+)/, In = /\/\*[^]*?\*\//g;
function $n(e) {
  const t = {};
  return e.replace(In, "").split(Rn).forEach((n) => {
    if (n) {
      const o = n.split(Dn);
      o.length > 1 && (t[o[0].trim()] = o[1].trim());
    }
  }), t;
}
function Xe(e) {
  let t = "";
  if (x(e))
    t = e;
  else if (_(e))
    for (let n = 0; n < e.length; n++) {
      const o = Xe(e[n]);
      o && (t += o + " ");
    }
  else if (N(e))
    for (const n in e)
      e[n] && (t += n + " ");
  return t.trim();
}
const Tn = (e) => x(e) ? e : e == null ? "" : _(e) || N(e) && (e.toString === Pt || !w(e.toString)) ? JSON.stringify(e, Ft, 2) : String(e), Ft = (e, t) => t && t.__v_isRef ? Ft(e, t.value) : W(t) ? {
  [`Map(${t.size})`]: [...t.entries()].reduce((n, [o, r]) => (n[`${o} =>`] = r, n), {})
} : Tt(t) ? {
  [`Set(${t.size})`]: [...t.values()]
} : N(t) && !_(t) && !At(t) ? String(t) : t;
function dt(e, ...t) {
  console.warn(`[Vue warn] ${e}`, ...t);
}
let jt;
function Pn(e, t = jt) {
  t && t.active && t.effects.push(e);
}
function Mn() {
  return jt;
}
const ce = (e) => {
  const t = new Set(e);
  return t.w = 0, t.n = 0, t;
}, zt = (e) => (e.w & H) > 0, Ht = (e) => (e.n & H) > 0, An = ({ deps: e }) => {
  if (e.length)
    for (let t = 0; t < e.length; t++)
      e[t].w |= H;
}, Fn = (e) => {
  const { deps: t } = e;
  if (t.length) {
    let n = 0;
    for (let o = 0; o < t.length; o++) {
      const r = t[o];
      zt(r) && !Ht(r) ? r.delete(e) : t[n++] = r, r.w &= ~H, r.n &= ~H;
    }
    t.length = n;
  }
}, je = /* @__PURE__ */ new WeakMap();
let te = 0, H = 1;
const ze = 30;
let O;
const q = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), He = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
class jn {
  constructor(t, n = null, o) {
    this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, Pn(this, o);
  }
  run() {
    if (!this.active)
      return this.fn();
    let t = O, n = z;
    for (; t; ) {
      if (t === this)
        return;
      t = t.parent;
    }
    try {
      return this.parent = O, O = this, z = !0, H = 1 << ++te, te <= ze ? An(this) : ht(this), this.fn();
    } finally {
      te <= ze && Fn(this), H = 1 << --te, O = this.parent, z = n, this.parent = void 0, this.deferStop && this.stop();
    }
  }
  stop() {
    O === this ? this.deferStop = !0 : this.active && (ht(this), this.onStop && this.onStop(), this.active = !1);
  }
}
function ht(e) {
  const { deps: t } = e;
  if (t.length) {
    for (let n = 0; n < t.length; n++)
      t[n].delete(e);
    t.length = 0;
  }
}
let z = !0;
const Kt = [];
function Ze() {
  Kt.push(z), z = !1;
}
function ke() {
  const e = Kt.pop();
  z = e === void 0 ? !0 : e;
}
function y(e, t, n) {
  if (z && O) {
    let o = je.get(e);
    o || je.set(e, o = /* @__PURE__ */ new Map());
    let r = o.get(n);
    r || o.set(n, r = ce());
    const s = process.env.NODE_ENV !== "production" ? { effect: O, target: e, type: t, key: n } : void 0;
    Ke(r, s);
  }
}
function Ke(e, t) {
  let n = !1;
  te <= ze ? Ht(e) || (e.n |= H, n = !zt(e)) : n = !e.has(O), n && (e.add(O), O.deps.push(e), process.env.NODE_ENV !== "production" && O.onTrack && O.onTrack(
    C(
      {
        effect: O
      },
      t
    )
  ));
}
function K(e, t, n, o, r, s) {
  const i = je.get(e);
  if (!i)
    return;
  let c = [];
  if (t === "clear")
    c = [...i.values()];
  else if (n === "length" && _(e)) {
    const a = Number(o);
    i.forEach((d, l) => {
      (l === "length" || l >= a) && c.push(d);
    });
  } else
    switch (n !== void 0 && c.push(i.get(n)), t) {
      case "add":
        _(e) ? Ge(n) && c.push(i.get("length")) : (c.push(i.get(q)), W(e) && c.push(i.get(He)));
        break;
      case "delete":
        _(e) || (c.push(i.get(q)), W(e) && c.push(i.get(He)));
        break;
      case "set":
        W(e) && c.push(i.get(q));
        break;
    }
  const u = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: o, oldValue: r, oldTarget: s } : void 0;
  if (c.length === 1)
    c[0] && (process.env.NODE_ENV !== "production" ? Q(c[0], u) : Q(c[0]));
  else {
    const a = [];
    for (const d of c)
      d && a.push(...d);
    process.env.NODE_ENV !== "production" ? Q(ce(a), u) : Q(ce(a));
  }
}
function Q(e, t) {
  const n = _(e) ? e : [...e];
  for (const o of n)
    o.computed && _t(o, t);
  for (const o of n)
    o.computed || _t(o, t);
}
function _t(e, t) {
  (e !== O || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(C({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
}
const zn = /* @__PURE__ */ wn("__proto__,__v_isRef,__isVue"), Ut = new Set(
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Le)
), Hn = /* @__PURE__ */ et(), Kn = /* @__PURE__ */ et(!0), Un = /* @__PURE__ */ et(!0, !0), gt = /* @__PURE__ */ Bn();
function Bn() {
  const e = {};
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
    e[t] = function(...n) {
      const o = p(this);
      for (let s = 0, i = this.length; s < i; s++)
        y(o, "get", s + "");
      const r = o[t](...n);
      return r === -1 || r === !1 ? o[t](...n.map(p)) : r;
    };
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
    e[t] = function(...n) {
      Ze();
      const o = p(this)[t].apply(this, n);
      return ke(), o;
    };
  }), e;
}
function Wn(e) {
  const t = p(this);
  return y(t, "has", e), t.hasOwnProperty(e);
}
function et(e = !1, t = !1) {
  return function(o, r, s) {
    if (r === "__v_isReactive")
      return !e;
    if (r === "__v_isReadonly")
      return e;
    if (r === "__v_isShallow")
      return t;
    if (r === "__v_raw" && s === (e ? t ? Lt : Jt : t ? ir : qt).get(o))
      return o;
    const i = _(o);
    if (!e) {
      if (i && m(gt, r))
        return Reflect.get(gt, r, s);
      if (r === "hasOwnProperty")
        return Wn;
    }
    const c = Reflect.get(o, r, s);
    return (Le(r) ? Ut.has(r) : zn(r)) || (e || y(o, "get", r), t) ? c : v(c) ? i && Ge(r) ? c : c.value : N(c) ? e ? Yt(c) : Gt(c) : c;
  };
}
const qn = /* @__PURE__ */ Jn();
function Jn(e = !1) {
  return function(n, o, r, s) {
    let i = n[o];
    if (U(i) && v(i) && !v(r))
      return !1;
    if (!e && (!Se(r) && !U(r) && (i = p(i), r = p(r)), !_(n) && v(i) && !v(r)))
      return i.value = r, !0;
    const c = _(n) && Ge(o) ? Number(o) < n.length : m(n, o), u = Reflect.set(n, o, r, s);
    return n === p(s) && (c ? ie(r, i) && K(n, "set", o, r, i) : K(n, "add", o, r)), u;
  };
}
function Ln(e, t) {
  const n = m(e, t), o = e[t], r = Reflect.deleteProperty(e, t);
  return r && n && K(e, "delete", t, void 0, o), r;
}
function Gn(e, t) {
  const n = Reflect.has(e, t);
  return (!Le(t) || !Ut.has(t)) && y(e, "has", t), n;
}
function Yn(e) {
  return y(e, "iterate", _(e) ? "length" : q), Reflect.ownKeys(e);
}
const Qn = {
  get: Hn,
  set: qn,
  deleteProperty: Ln,
  has: Gn,
  ownKeys: Yn
}, Bt = {
  get: Kn,
  set(e, t) {
    return process.env.NODE_ENV !== "production" && dt(
      `Set operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  },
  deleteProperty(e, t) {
    return process.env.NODE_ENV !== "production" && dt(
      `Delete operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  }
}, Xn = /* @__PURE__ */ C(
  {},
  Bt,
  {
    get: Un
  }
), tt = (e) => e, Ie = (e) => Reflect.getPrototypeOf(e);
function pe(e, t, n = !1, o = !1) {
  e = e.__v_raw;
  const r = p(e), s = p(t);
  n || (t !== s && y(r, "get", t), y(r, "get", s));
  const { has: i } = Ie(r), c = o ? tt : n ? ot : le;
  if (i.call(r, t))
    return c(e.get(t));
  if (i.call(r, s))
    return c(e.get(s));
  e !== r && e.get(t);
}
function de(e, t = !1) {
  const n = this.__v_raw, o = p(n), r = p(e);
  return t || (e !== r && y(o, "has", e), y(o, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
}
function he(e, t = !1) {
  return e = e.__v_raw, !t && y(p(e), "iterate", q), Reflect.get(e, "size", e);
}
function mt(e) {
  e = p(e);
  const t = p(this);
  return Ie(t).has.call(t, e) || (t.add(e), K(t, "add", e, e)), this;
}
function Et(e, t) {
  t = p(t);
  const n = p(this), { has: o, get: r } = Ie(n);
  let s = o.call(n, e);
  s ? process.env.NODE_ENV !== "production" && Wt(n, o, e) : (e = p(e), s = o.call(n, e));
  const i = r.call(n, e);
  return n.set(e, t), s ? ie(t, i) && K(n, "set", e, t, i) : K(n, "add", e, t), this;
}
function wt(e) {
  const t = p(this), { has: n, get: o } = Ie(t);
  let r = n.call(t, e);
  r ? process.env.NODE_ENV !== "production" && Wt(t, n, e) : (e = p(e), r = n.call(t, e));
  const s = o ? o.call(t, e) : void 0, i = t.delete(e);
  return r && K(t, "delete", e, void 0, s), i;
}
function Nt() {
  const e = p(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? W(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
  return t && K(e, "clear", void 0, void 0, n), o;
}
function _e(e, t) {
  return function(o, r) {
    const s = this, i = s.__v_raw, c = p(i), u = t ? tt : e ? ot : le;
    return !e && y(c, "iterate", q), i.forEach((a, d) => o.call(r, u(a), u(d), s));
  };
}
function ge(e, t, n) {
  return function(...o) {
    const r = this.__v_raw, s = p(r), i = W(s), c = e === "entries" || e === Symbol.iterator && i, u = e === "keys" && i, a = r[e](...o), d = n ? tt : t ? ot : le;
    return !t && y(
      s,
      "iterate",
      u ? He : q
    ), {
      // iterator protocol
      next() {
        const { value: l, done: f } = a.next();
        return f ? { value: l, done: f } : {
          value: c ? [d(l[0]), d(l[1])] : d(l),
          done: f
        };
      },
      // iterable protocol
      [Symbol.iterator]() {
        return this;
      }
    };
  };
}
function A(e) {
  return function(...t) {
    if (process.env.NODE_ENV !== "production") {
      const n = t[0] ? `on key "${t[0]}" ` : "";
      console.warn(
        `${se(e)} operation ${n}failed: target is readonly.`,
        p(this)
      );
    }
    return e === "delete" ? !1 : this;
  };
}
function Zn() {
  const e = {
    get(s) {
      return pe(this, s);
    },
    get size() {
      return he(this);
    },
    has: de,
    add: mt,
    set: Et,
    delete: wt,
    clear: Nt,
    forEach: _e(!1, !1)
  }, t = {
    get(s) {
      return pe(this, s, !1, !0);
    },
    get size() {
      return he(this);
    },
    has: de,
    add: mt,
    set: Et,
    delete: wt,
    clear: Nt,
    forEach: _e(!1, !0)
  }, n = {
    get(s) {
      return pe(this, s, !0);
    },
    get size() {
      return he(this, !0);
    },
    has(s) {
      return de.call(this, s, !0);
    },
    add: A("add"),
    set: A("set"),
    delete: A("delete"),
    clear: A("clear"),
    forEach: _e(!0, !1)
  }, o = {
    get(s) {
      return pe(this, s, !0, !0);
    },
    get size() {
      return he(this, !0);
    },
    has(s) {
      return de.call(this, s, !0);
    },
    add: A("add"),
    set: A("set"),
    delete: A("delete"),
    clear: A("clear"),
    forEach: _e(!0, !0)
  };
  return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
    e[s] = ge(
      s,
      !1,
      !1
    ), n[s] = ge(
      s,
      !0,
      !1
    ), t[s] = ge(
      s,
      !1,
      !0
    ), o[s] = ge(
      s,
      !0,
      !0
    );
  }), [
    e,
    n,
    t,
    o
  ];
}
const [
  kn,
  er,
  tr,
  nr
] = /* @__PURE__ */ Zn();
function nt(e, t) {
  const n = t ? e ? nr : tr : e ? er : kn;
  return (o, r, s) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
    m(n, r) && r in o ? n : o,
    r,
    s
  );
}
const rr = {
  get: /* @__PURE__ */ nt(!1, !1)
}, or = {
  get: /* @__PURE__ */ nt(!0, !1)
}, sr = {
  get: /* @__PURE__ */ nt(!0, !0)
};
function Wt(e, t, n) {
  const o = p(n);
  if (o !== n && t.call(e, o)) {
    const r = Mt(e);
    console.warn(
      `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
    );
  }
}
const qt = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap();
function cr(e) {
  switch (e) {
    case "Object":
    case "Array":
      return 1;
    case "Map":
    case "Set":
    case "WeakMap":
    case "WeakSet":
      return 2;
    default:
      return 0;
  }
}
function lr(e) {
  return e.__v_skip || !Object.isExtensible(e) ? 0 : cr(Mt(e));
}
function Gt(e) {
  return U(e) ? e : rt(
    e,
    !1,
    Qn,
    rr,
    qt
  );
}
function Yt(e) {
  return rt(
    e,
    !0,
    Bt,
    or,
    Jt
  );
}
function me(e) {
  return rt(
    e,
    !0,
    Xn,
    sr,
    Lt
  );
}
function rt(e, t, n, o, r) {
  if (!N(e))
    return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
  if (e.__v_raw && !(t && e.__v_isReactive))
    return e;
  const s = r.get(e);
  if (s)
    return s;
  const i = lr(e);
  if (i === 0)
    return e;
  const c = new Proxy(
    e,
    i === 2 ? o : n
  );
  return r.set(e, c), c;
}
function J(e) {
  return U(e) ? J(e.__v_raw) : !!(e && e.__v_isReactive);
}
function U(e) {
  return !!(e && e.__v_isReadonly);
}
function Se(e) {
  return !!(e && e.__v_isShallow);
}
function Ue(e) {
  return J(e) || U(e);
}
function p(e) {
  const t = e && e.__v_raw;
  return t ? p(t) : e;
}
function ur(e) {
  return Cn(e, "__v_skip", !0), e;
}
const le = (e) => N(e) ? Gt(e) : e, ot = (e) => N(e) ? Yt(e) : e;
function ar(e) {
  z && O && (e = p(e), process.env.NODE_ENV !== "production" ? Ke(e.dep || (e.dep = ce()), {
    target: e,
    type: "get",
    key: "value"
  }) : Ke(e.dep || (e.dep = ce())));
}
function fr(e, t) {
  e = p(e);
  const n = e.dep;
  n && (process.env.NODE_ENV !== "production" ? Q(n, {
    target: e,
    type: "set",
    key: "value",
    newValue: t
  }) : Q(n));
}
function v(e) {
  return !!(e && e.__v_isRef === !0);
}
function bt(e) {
  return pr(e, !1);
}
function pr(e, t) {
  return v(e) ? e : new dr(e, t);
}
class dr {
  constructor(t, n) {
    this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : p(t), this._value = n ? t : le(t);
  }
  get value() {
    return ar(this), this._value;
  }
  set value(t) {
    const n = this.__v_isShallow || Se(t) || U(t);
    t = n ? t : p(t), ie(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : le(t), fr(this, t));
  }
}
function hr(e) {
  return v(e) ? e.value : e;
}
const _r = {
  get: (e, t, n) => hr(Reflect.get(e, t, n)),
  set: (e, t, n, o) => {
    const r = e[t];
    return v(r) && !v(n) ? (r.value = n, !0) : Reflect.set(e, t, n, o);
  }
};
function gr(e) {
  return J(e) ? e : new Proxy(e, _r);
}
const L = [];
function mr(e) {
  L.push(e);
}
function Er() {
  L.pop();
}
function E(e, ...t) {
  if (process.env.NODE_ENV === "production")
    return;
  Ze();
  const n = L.length ? L[L.length - 1].component : null, o = n && n.appContext.config.warnHandler, r = wr();
  if (o)
    G(
      o,
      n,
      11,
      [
        e + t.join(""),
        n && n.proxy,
        r.map(
          ({ vnode: s }) => `at <${_n(n, s.type)}>`
        ).join(`
`),
        r
      ]
    );
  else {
    const s = [`[Vue warn]: ${e}`, ...t];
    r.length && s.push(`
`, ...Nr(r)), console.warn(...s);
  }
  ke();
}
function wr() {
  let e = L[L.length - 1];
  if (!e)
    return [];
  const t = [];
  for (; e; ) {
    const n = t[0];
    n && n.vnode === e ? n.recurseCount++ : t.push({
      vnode: e,
      recurseCount: 0
    });
    const o = e.component && e.component.parent;
    e = o && o.vnode;
  }
  return t;
}
function Nr(e) {
  const t = [];
  return e.forEach((n, o) => {
    t.push(...o === 0 ? [] : [`
`], ...br(n));
  }), t;
}
function br({ vnode: e, recurseCount: t }) {
  const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, r = ` at <${_n(
    e.component,
    e.type,
    o
  )}`, s = ">" + n;
  return e.props ? [r, ...Or(e.props), s] : [r + s];
}
function Or(e) {
  const t = [], n = Object.keys(e);
  return n.slice(0, 3).forEach((o) => {
    t.push(...Qt(o, e[o]));
  }), n.length > 3 && t.push(" ..."), t;
}
function Qt(e, t, n) {
  return x(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : v(t) ? (t = Qt(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : w(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
}
const st = {
  sp: "serverPrefetch hook",
  bc: "beforeCreate hook",
  c: "created hook",
  bm: "beforeMount hook",
  m: "mounted hook",
  bu: "beforeUpdate hook",
  u: "updated",
  bum: "beforeUnmount hook",
  um: "unmounted hook",
  a: "activated hook",
  da: "deactivated hook",
  ec: "errorCaptured hook",
  rtc: "renderTracked hook",
  rtg: "renderTriggered hook",
  0: "setup function",
  1: "render function",
  2: "watcher getter",
  3: "watcher callback",
  4: "watcher cleanup function",
  5: "native event handler",
  6: "component event handler",
  7: "vnode hook",
  8: "directive hook",
  9: "transition hook",
  10: "app errorHandler",
  11: "app warnHandler",
  12: "ref function",
  13: "async component loader",
  14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
};
function G(e, t, n, o) {
  let r;
  try {
    r = o ? e(...o) : e();
  } catch (s) {
    Xt(s, t, n);
  }
  return r;
}
function ye(e, t, n, o) {
  if (w(e)) {
    const s = G(e, t, n, o);
    return s && yn(s) && s.catch((i) => {
      Xt(i, t, n);
    }), s;
  }
  const r = [];
  for (let s = 0; s < e.length; s++)
    r.push(ye(e[s], t, n, o));
  return r;
}
function Xt(e, t, n, o = !0) {
  const r = t ? t.vnode : null;
  if (t) {
    let s = t.parent;
    const i = t.proxy, c = process.env.NODE_ENV !== "production" ? st[n] : n;
    for (; s; ) {
      const a = s.ec;
      if (a) {
        for (let d = 0; d < a.length; d++)
          if (a[d](e, i, c) === !1)
            return;
      }
      s = s.parent;
    }
    const u = t.appContext.config.errorHandler;
    if (u) {
      G(
        u,
        null,
        10,
        [e, i, c]
      );
      return;
    }
  }
  vr(e, n, r, o);
}
function vr(e, t, n, o = !0) {
  if (process.env.NODE_ENV !== "production") {
    const r = st[t];
    if (n && mr(n), E(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Er(), o)
      throw e;
    console.error(e);
  } else
    console.error(e);
}
let Ve = !1, Be = !1;
const I = [];
let j = 0;
const Z = [];
let T = null, F = 0;
const Zt = /* @__PURE__ */ Promise.resolve();
let it = null;
const Sr = 100;
function yr(e) {
  const t = it || Zt;
  return e ? t.then(this ? e.bind(this) : e) : t;
}
function Vr(e) {
  let t = j + 1, n = I.length;
  for (; t < n; ) {
    const o = t + n >>> 1;
    ue(I[o]) < e ? t = o + 1 : n = o;
  }
  return t;
}
function ct(e) {
  (!I.length || !I.includes(
    e,
    Ve && e.allowRecurse ? j + 1 : j
  )) && (e.id == null ? I.push(e) : I.splice(Vr(e.id), 0, e), kt());
}
function kt() {
  !Ve && !Be && (Be = !0, it = Zt.then(tn));
}
function en(e) {
  _(e) ? Z.push(...e) : (!T || !T.includes(
    e,
    e.allowRecurse ? F + 1 : F
  )) && Z.push(e), kt();
}
function xr(e) {
  if (Z.length) {
    const t = [...new Set(Z)];
    if (Z.length = 0, T) {
      T.push(...t);
      return;
    }
    for (T = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), T.sort((n, o) => ue(n) - ue(o)), F = 0; F < T.length; F++)
      process.env.NODE_ENV !== "production" && nn(e, T[F]) || T[F]();
    T = null, F = 0;
  }
}
const ue = (e) => e.id == null ? 1 / 0 : e.id, Cr = (e, t) => {
  const n = ue(e) - ue(t);
  if (n === 0) {
    if (e.pre && !t.pre)
      return -1;
    if (t.pre && !e.pre)
      return 1;
  }
  return n;
};
function tn(e) {
  Be = !1, Ve = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), I.sort(Cr);
  const t = process.env.NODE_ENV !== "production" ? (n) => nn(e, n) : $t;
  try {
    for (j = 0; j < I.length; j++) {
      const n = I[j];
      if (n && n.active !== !1) {
        if (process.env.NODE_ENV !== "production" && t(n))
          continue;
        G(n, null, 14);
      }
    }
  } finally {
    j = 0, I.length = 0, xr(e), Ve = !1, it = null, (I.length || Z.length) && tn(e);
  }
}
function nn(e, t) {
  if (!e.has(t))
    e.set(t, 1);
  else {
    const n = e.get(t);
    if (n > Sr) {
      const o = t.ownerInstance, r = o && ft(o.type);
      return E(
        `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
      ), !0;
    } else
      e.set(t, n + 1);
  }
}
const k = /* @__PURE__ */ new Set();
process.env.NODE_ENV !== "production" && (Fe().__VUE_HMR_RUNTIME__ = {
  createRecord: $e(Rr),
  rerender: $e(Dr),
  reload: $e(Ir)
});
const xe = /* @__PURE__ */ new Map();
function Rr(e, t) {
  return xe.has(e) ? !1 : (xe.set(e, {
    initialDef: re(t),
    instances: /* @__PURE__ */ new Set()
  }), !0);
}
function re(e) {
  return gn(e) ? e.__vccOpts : e;
}
function Dr(e, t) {
  const n = xe.get(e);
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
    t && (o.render = t, re(o.type).render = t), o.renderCache = [], o.update();
  }));
}
function Ir(e, t) {
  const n = xe.get(e);
  if (!n)
    return;
  t = re(t), Ot(n.initialDef, t);
  const o = [...n.instances];
  for (const r of o) {
    const s = re(r.type);
    k.has(s) || (s !== n.initialDef && Ot(s, t), k.add(s)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (k.add(s), r.ceReload(t.styles), k.delete(s)) : r.parent ? ct(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
      "[HMR] Root or manually mounted instance modified. Full reload required."
    );
  }
  en(() => {
    for (const r of o)
      k.delete(
        re(r.type)
      );
  });
}
function Ot(e, t) {
  C(e, t);
  for (const n in e)
    n !== "__file" && !(n in t) && delete e[n];
}
function $e(e) {
  return (t, n) => {
    try {
      return e(t, n);
    } catch (o) {
      console.error(o), console.warn(
        "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
      );
    }
  };
}
function $r(e, ...t) {
}
const Tr = /* @__PURE__ */ Pr(
  "component:updated"
  /* COMPONENT_UPDATED */
);
function Pr(e) {
  return (t) => {
    $r(
      e,
      t.appContext.app,
      t.uid,
      t.parent ? t.parent.uid : void 0,
      t
    );
  };
}
let D = null, rn = null;
function vt(e) {
  const t = D;
  return D = e, rn = e && e.type.__scopeId || null, t;
}
function Te(e, t = D, n) {
  if (!t || e._n)
    return e;
  const o = (...r) => {
    o._d && Dt(-1);
    const s = vt(t);
    let i;
    try {
      i = e(...r);
    } finally {
      vt(s), o._d && Dt(1);
    }
    return process.env.NODE_ENV !== "production" && Tr(t), i;
  };
  return o._n = !0, o._c = !0, o._d = !0, o;
}
const Mr = (e) => e.__isSuspense;
function Ar(e, t) {
  t && t.pendingBranch ? _(e) ? t.effects.push(...e) : t.effects.push(e) : en(e);
}
const Ee = {};
function Fr(e, t, n) {
  return process.env.NODE_ENV !== "production" && !w(t) && E(
    "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
  ), on(e, t, n);
}
function on(e, t, { immediate: n, deep: o, flush: r, onTrack: s, onTrigger: i } = P) {
  var c;
  process.env.NODE_ENV !== "production" && !t && (n !== void 0 && E(
    'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
  ), o !== void 0 && E(
    'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
  ));
  const u = (g) => {
    E(
      "Invalid watch source: ",
      g,
      "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
    );
  }, a = Mn() === ((c = M) == null ? void 0 : c.scope) ? M : null;
  let d, l = !1, f = !1;
  if (v(e) ? (d = () => e.value, l = Se(e)) : J(e) ? (d = () => e, o = !0) : _(e) ? (f = !0, l = e.some((g) => J(g) || Se(g)), d = () => e.map((g) => {
    if (v(g))
      return g.value;
    if (J(g))
      return X(g);
    if (w(g))
      return G(g, a, 2);
    process.env.NODE_ENV !== "production" && u(g);
  })) : w(e) ? t ? d = () => G(e, a, 2) : d = () => {
    if (!(a && a.isUnmounted))
      return h && h(), ye(
        e,
        a,
        3,
        [S]
      );
  } : (d = $t, process.env.NODE_ENV !== "production" && u(e)), t && o) {
    const g = d;
    d = () => X(g());
  }
  let h, S = (g) => {
    h = R.onStop = () => {
      G(g, a, 4);
    };
  }, V = f ? new Array(e.length).fill(Ee) : Ee;
  const B = () => {
    if (R.active)
      if (t) {
        const g = R.run();
        (o || l || (f ? g.some(
          (mn, En) => ie(mn, V[En])
        ) : ie(g, V))) && (h && h(), ye(t, a, 3, [
          g,
          // pass undefined as the old value when it's changed for the first time
          V === Ee ? void 0 : f && V[0] === Ee ? [] : V,
          S
        ]), V = g);
      } else
        R.run();
  };
  B.allowRecurse = !!t;
  let fe;
  r === "sync" ? fe = B : r === "post" ? fe = () => Rt(B, a && a.suspense) : (B.pre = !0, a && (B.id = a.uid), fe = () => ct(B));
  const R = new jn(d, fe);
  return process.env.NODE_ENV !== "production" && (R.onTrack = s, R.onTrigger = i), t ? n ? B() : V = R.run() : r === "post" ? Rt(
    R.run.bind(R),
    a && a.suspense
  ) : R.run(), () => {
    R.stop(), a && a.scope && vn(a.scope.effects, R);
  };
}
function jr(e, t, n) {
  const o = this.proxy, r = x(e) ? e.includes(".") ? zr(o, e) : () => o[e] : e.bind(o, o);
  let s;
  w(t) ? s = t : (s = t.handler, n = t);
  const i = M;
  Je(this);
  const c = on(r, s.bind(o), n);
  return i ? Je(i) : hn(), c;
}
function zr(e, t) {
  const n = t.split(".");
  return () => {
    let o = e;
    for (let r = 0; r < n.length && o; r++)
      o = o[n[r]];
    return o;
  };
}
function X(e, t) {
  if (!N(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
    return e;
  if (t.add(e), v(e))
    X(e.value, t);
  else if (_(e))
    for (let n = 0; n < e.length; n++)
      X(e[n], t);
  else if (Tt(e) || W(e))
    e.forEach((n) => {
      X(n, t);
    });
  else if (At(e))
    for (const n in e)
      X(e[n], t);
  return e;
}
function Hr(e, t) {
  return w(e) ? (
    // #8326: extend call and options.name access are considered side-effects
    // by Rollup, so we have to wrap it in a pure-annotated IIFE.
    /* @__PURE__ */ (() => C({ name: e.name }, t, { setup: e }))()
  ) : e;
}
function Kr(e, t, n = M, o = !1) {
  if (n) {
    const r = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => {
      if (n.isUnmounted)
        return;
      Ze(), Je(n);
      const c = ye(t, n, e, i);
      return hn(), ke(), c;
    });
    return o ? r.unshift(s) : r.push(s), s;
  } else if (process.env.NODE_ENV !== "production") {
    const r = xn(st[e].replace(/ hook$/, ""));
    E(
      `${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
    );
  }
}
const Ur = (e) => (t, n = M) => (
  // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  Kr(e, (...o) => t(...o), n)
), Br = Ur("m"), We = "components";
function Pe(e, t) {
  return qr(We, e, !0, t) || e;
}
const Wr = Symbol.for("v-ndc");
function qr(e, t, n = !0, o = !1) {
  const r = D || M;
  if (r) {
    const s = r.type;
    if (e === We) {
      const c = ft(
        s,
        !1
        /* do not include inferred name to avoid breaking existing code */
      );
      if (c && (c === t || c === ve(t) || c === se(ve(t))))
        return s;
    }
    const i = (
      // local registration
      // check instance[type] first which is resolved for options API
      St(r[e] || s[e], t) || // global registration
      St(r.appContext[e], t)
    );
    if (!i && o)
      return s;
    if (process.env.NODE_ENV !== "production" && n && !i) {
      const c = e === We ? `
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
      E(`Failed to resolve ${e.slice(0, -1)}: ${t}${c}`);
    }
    return i;
  } else
    process.env.NODE_ENV !== "production" && E(
      `resolve${se(e.slice(0, -1))} can only be used in render() or setup().`
    );
}
function St(e, t) {
  return e && (e[t] || e[ve(t)] || e[se(ve(t))]);
}
function Jr(e, t, n, o) {
  let r;
  const s = n && n[o];
  if (_(e) || x(e)) {
    r = new Array(e.length);
    for (let i = 0, c = e.length; i < c; i++)
      r[i] = t(e[i], i, void 0, s && s[i]);
  } else if (typeof e == "number") {
    process.env.NODE_ENV !== "production" && !Number.isInteger(e) && E(`The v-for range expect an integer value but got ${e}.`), r = new Array(e);
    for (let i = 0; i < e; i++)
      r[i] = t(i + 1, i, void 0, s && s[i]);
  } else if (N(e))
    if (e[Symbol.iterator])
      r = Array.from(
        e,
        (i, c) => t(i, c, void 0, s && s[c])
      );
    else {
      const i = Object.keys(e);
      r = new Array(i.length);
      for (let c = 0, u = i.length; c < u; c++) {
        const a = i[c];
        r[c] = t(e[a], a, c, s && s[c]);
      }
    }
  else
    r = [];
  return n && (n[o] = r), r;
}
const qe = (e) => e ? co(e) ? lo(e) || e.proxy : qe(e.parent) : null, oe = (
  // Move PURE marker to new line to workaround compiler discarding it
  // due to type annotation
  /* @__PURE__ */ C(/* @__PURE__ */ Object.create(null), {
    $: (e) => e,
    $el: (e) => e.vnode.el,
    $data: (e) => e.data,
    $props: (e) => process.env.NODE_ENV !== "production" ? me(e.props) : e.props,
    $attrs: (e) => process.env.NODE_ENV !== "production" ? me(e.attrs) : e.attrs,
    $slots: (e) => process.env.NODE_ENV !== "production" ? me(e.slots) : e.slots,
    $refs: (e) => process.env.NODE_ENV !== "production" ? me(e.refs) : e.refs,
    $parent: (e) => qe(e.parent),
    $root: (e) => qe(e.root),
    $emit: (e) => e.emit,
    $options: (e) => Yr(e),
    $forceUpdate: (e) => e.f || (e.f = () => ct(e.update)),
    $nextTick: (e) => e.n || (e.n = yr.bind(e.proxy)),
    $watch: (e) => jr.bind(e)
  })
), Lr = (e) => e === "_" || e === "$", Me = (e, t) => e !== P && !e.__isScriptSetup && m(e, t), Gr = {
  get({ _: e }, t) {
    const { ctx: n, setupState: o, data: r, props: s, accessCache: i, type: c, appContext: u } = e;
    if (process.env.NODE_ENV !== "production" && t === "__isVue")
      return !0;
    let a;
    if (t[0] !== "$") {
      const h = i[t];
      if (h !== void 0)
        switch (h) {
          case 1:
            return o[t];
          case 2:
            return r[t];
          case 4:
            return n[t];
          case 3:
            return s[t];
        }
      else {
        if (Me(o, t))
          return i[t] = 1, o[t];
        if (r !== P && m(r, t))
          return i[t] = 2, r[t];
        if (
          // only cache other properties when instance has declared (thus stable)
          // props
          (a = e.propsOptions[0]) && m(a, t)
        )
          return i[t] = 3, s[t];
        if (n !== P && m(n, t))
          return i[t] = 4, n[t];
        i[t] = 0;
      }
    }
    const d = oe[t];
    let l, f;
    if (d)
      return t === "$attrs" ? (y(e, "get", t), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && y(e, "get", t), d(e);
    if (
      // css module (injected by vue-loader)
      (l = c.__cssModules) && (l = l[t])
    )
      return l;
    if (n !== P && m(n, t))
      return i[t] = 4, n[t];
    if (
      // global properties
      f = u.config.globalProperties, m(f, t)
    )
      return f[t];
    process.env.NODE_ENV !== "production" && D && (!x(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
    // to infinite warning loop
    t.indexOf("__v") !== 0) && (r !== P && Lr(t[0]) && m(r, t) ? E(
      `Property ${JSON.stringify(
        t
      )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
    ) : e === D && E(
      `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
    ));
  },
  set({ _: e }, t, n) {
    const { data: o, setupState: r, ctx: s } = e;
    return Me(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && m(r, t) ? (E(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== P && m(o, t) ? (o[t] = n, !0) : m(e.props, t) ? (process.env.NODE_ENV !== "production" && E(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && E(
      `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
    ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
      enumerable: !0,
      configurable: !0,
      value: n
    }) : s[t] = n, !0);
  },
  has({
    _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, propsOptions: s }
  }, i) {
    let c;
    return !!n[i] || e !== P && m(e, i) || Me(t, i) || (c = s[0]) && m(c, i) || m(o, i) || m(oe, i) || m(r.config.globalProperties, i);
  },
  defineProperty(e, t, n) {
    return n.get != null ? e._.accessCache[t] = 0 : m(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
  }
};
process.env.NODE_ENV !== "production" && (Gr.ownKeys = (e) => (E(
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
), Reflect.ownKeys(e)));
function yt(e) {
  return _(e) ? e.reduce(
    (t, n) => (t[n] = null, t),
    {}
  ) : e;
}
function Yr(e) {
  const t = e.type, { mixins: n, extends: o } = t, {
    mixins: r,
    optionsCache: s,
    config: { optionMergeStrategies: i }
  } = e.appContext, c = s.get(t);
  let u;
  return c ? u = c : !r.length && !n && !o ? u = t : (u = {}, r.length && r.forEach(
    (a) => Ce(u, a, i, !0)
  ), Ce(u, t, i)), N(t) && s.set(t, u), u;
}
function Ce(e, t, n, o = !1) {
  const { mixins: r, extends: s } = t;
  s && Ce(e, s, n, !0), r && r.forEach(
    (i) => Ce(e, i, n, !0)
  );
  for (const i in t)
    if (o && i === "expose")
      process.env.NODE_ENV !== "production" && E(
        '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
      );
    else {
      const c = Qr[i] || n && n[i];
      e[i] = c ? c(e[i], t[i]) : t[i];
    }
  return e;
}
const Qr = {
  data: Vt,
  props: Ct,
  emits: Ct,
  // objects
  methods: ne,
  computed: ne,
  // lifecycle
  beforeCreate: b,
  created: b,
  beforeMount: b,
  mounted: b,
  beforeUpdate: b,
  updated: b,
  beforeDestroy: b,
  beforeUnmount: b,
  destroyed: b,
  unmounted: b,
  activated: b,
  deactivated: b,
  errorCaptured: b,
  serverPrefetch: b,
  // assets
  components: ne,
  directives: ne,
  // watch
  watch: Zr,
  // provide / inject
  provide: Vt,
  inject: Xr
};
function Vt(e, t) {
  return t ? e ? function() {
    return C(
      w(e) ? e.call(this, this) : e,
      w(t) ? t.call(this, this) : t
    );
  } : t : e;
}
function Xr(e, t) {
  return ne(xt(e), xt(t));
}
function xt(e) {
  if (_(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++)
      t[e[n]] = e[n];
    return t;
  }
  return e;
}
function b(e, t) {
  return e ? [...new Set([].concat(e, t))] : t;
}
function ne(e, t) {
  return e ? C(/* @__PURE__ */ Object.create(null), e, t) : t;
}
function Ct(e, t) {
  return e ? _(e) && _(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : C(
    /* @__PURE__ */ Object.create(null),
    yt(e),
    yt(t ?? {})
  ) : t;
}
function Zr(e, t) {
  if (!e)
    return t;
  if (!t)
    return e;
  const n = C(/* @__PURE__ */ Object.create(null), e);
  for (const o in t)
    n[o] = b(e[o], t[o]);
  return n;
}
const Rt = Ar, kr = (e) => e.__isTeleport, lt = Symbol.for("v-fgt"), eo = Symbol.for("v-txt"), to = Symbol.for("v-cmt"), Ne = [];
let $ = null;
function ee(e = !1) {
  Ne.push($ = e ? null : []);
}
function no() {
  Ne.pop(), $ = Ne[Ne.length - 1] || null;
}
let ae = 1;
function Dt(e) {
  ae += e;
}
function sn(e) {
  return e.dynamicChildren = ae > 0 ? $ || Nn : null, no(), ae > 0 && $ && $.push(e), e;
}
function ro(e, t, n, o, r, s) {
  return sn(
    un(
      e,
      t,
      n,
      o,
      r,
      s,
      !0
      /* isBlock */
    )
  );
}
function we(e, t, n, o, r) {
  return sn(
    an(
      e,
      t,
      n,
      o,
      r,
      !0
      /* isBlock: prevent a block from tracking itself */
    )
  );
}
function oo(e) {
  return e ? e.__v_isVNode === !0 : !1;
}
const so = (...e) => fn(
  ...e
), cn = "__vInternal", ln = ({ key: e }) => e ?? null, be = ({
  ref: e,
  ref_key: t,
  ref_for: n
}) => (typeof e == "number" && (e = "" + e), e != null ? x(e) || v(e) || w(e) ? { i: D, r: e, k: t, f: !!n } : e : null);
function un(e, t = null, n = null, o = 0, r = null, s = e === lt ? 0 : 1, i = !1, c = !1) {
  const u = {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e,
    props: t,
    key: t && ln(t),
    ref: t && be(t),
    scopeId: rn,
    slotScopeIds: null,
    children: n,
    component: null,
    suspense: null,
    ssContent: null,
    ssFallback: null,
    dirs: null,
    transition: null,
    el: null,
    anchor: null,
    target: null,
    targetAnchor: null,
    staticCount: 0,
    shapeFlag: s,
    patchFlag: o,
    dynamicProps: r,
    dynamicChildren: null,
    appContext: null,
    ctx: D
  };
  return c ? (ut(u, n), s & 128 && e.normalize(u)) : n && (u.shapeFlag |= x(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && E("VNode created with invalid key (NaN). VNode type:", u.type), ae > 0 && // avoid a block node from tracking itself
  !i && // has current parent block
  $ && // presence of a patch flag indicates this node needs patching on updates.
  // component nodes also should always be patched, because even if the
  // component doesn't need to update, it needs to persist the instance on to
  // the next vnode so that it can be properly unmounted later.
  (u.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
  // vnode should not be considered dynamic due to handler caching.
  u.patchFlag !== 32 && $.push(u), u;
}
const an = process.env.NODE_ENV !== "production" ? so : fn;
function fn(e, t = null, n = null, o = 0, r = null, s = !1) {
  if ((!e || e === Wr) && (process.env.NODE_ENV !== "production" && !e && E(`Invalid vnode type when creating vnode: ${e}.`), e = to), oo(e)) {
    const c = Re(
      e,
      t,
      !0
      /* mergeRef: true */
    );
    return n && ut(c, n), ae > 0 && !s && $ && (c.shapeFlag & 6 ? $[$.indexOf(e)] = c : $.push(c)), c.patchFlag |= -2, c;
  }
  if (gn(e) && (e = e.__vccOpts), t) {
    t = io(t);
    let { class: c, style: u } = t;
    c && !x(c) && (t.class = Xe(c)), N(u) && (Ue(u) && !_(u) && (u = C({}, u)), t.style = Qe(u));
  }
  const i = x(e) ? 1 : Mr(e) ? 128 : kr(e) ? 64 : N(e) ? 4 : w(e) ? 2 : 0;
  return process.env.NODE_ENV !== "production" && i & 4 && Ue(e) && (e = p(e), E(
    "Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
    `
Component that was made reactive: `,
    e
  )), un(
    e,
    t,
    n,
    o,
    r,
    i,
    s,
    !0
  );
}
function io(e) {
  return e ? Ue(e) || cn in e ? C({}, e) : e : null;
}
function Re(e, t, n = !1) {
  const { props: o, ref: r, patchFlag: s, children: i } = e, c = t ? Oe(o || {}, t) : o;
  return {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e.type,
    props: c,
    key: c && ln(c),
    ref: t && t.ref ? (
      // #2078 in the case of <component :is="vnode" ref="extra"/>
      // if the vnode itself already has a ref, cloneVNode will need to merge
      // the refs so the single vnode can be set on multiple refs
      n && r ? _(r) ? r.concat(be(t)) : [r, be(t)] : be(t)
    ) : r,
    scopeId: e.scopeId,
    slotScopeIds: e.slotScopeIds,
    children: process.env.NODE_ENV !== "production" && s === -1 && _(i) ? i.map(pn) : i,
    target: e.target,
    targetAnchor: e.targetAnchor,
    staticCount: e.staticCount,
    shapeFlag: e.shapeFlag,
    // if the vnode is cloned with extra props, we can no longer assume its
    // existing patch flag to be reliable and need to add the FULL_PROPS flag.
    // note: preserve flag for fragments since they use the flag for children
    // fast paths only.
    patchFlag: t && e.type !== lt ? s === -1 ? 16 : s | 16 : s,
    dynamicProps: e.dynamicProps,
    dynamicChildren: e.dynamicChildren,
    appContext: e.appContext,
    dirs: e.dirs,
    transition: e.transition,
    // These should technically only be non-null on mounted VNodes. However,
    // they *should* be copied for kept-alive vnodes. So we just always copy
    // them since them being non-null during a mount doesn't affect the logic as
    // they will simply be overwritten.
    component: e.component,
    suspense: e.suspense,
    ssContent: e.ssContent && Re(e.ssContent),
    ssFallback: e.ssFallback && Re(e.ssFallback),
    el: e.el,
    anchor: e.anchor,
    ctx: e.ctx,
    ce: e.ce
  };
}
function pn(e) {
  const t = Re(e);
  return _(e.children) && (t.children = e.children.map(pn)), t;
}
function dn(e = " ", t = 0) {
  return an(eo, null, e, t);
}
function ut(e, t) {
  let n = 0;
  const { shapeFlag: o } = e;
  if (t == null)
    t = null;
  else if (_(t))
    n = 16;
  else if (typeof t == "object")
    if (o & 65) {
      const r = t.default;
      r && (r._c && (r._d = !1), ut(e, r()), r._c && (r._d = !0));
      return;
    } else {
      n = 32;
      const r = t._;
      !r && !(cn in t) ? t._ctx = D : r === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
    }
  else
    w(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [dn(t)]) : n = 8);
  e.children = t, e.shapeFlag |= n;
}
function Oe(...e) {
  const t = {};
  for (let n = 0; n < e.length; n++) {
    const o = e[n];
    for (const r in o)
      if (r === "class")
        t.class !== o.class && (t.class = Xe([t.class, o.class]));
      else if (r === "style")
        t.style = Qe([t.style, o.style]);
      else if (On(r)) {
        const s = t[r], i = o[r];
        i && s !== i && !(_(s) && s.includes(i)) && (t[r] = s ? [].concat(s, i) : i);
      } else
        r !== "" && (t[r] = o[r]);
  }
  return t;
}
let M = null, at, Y, It = "__VUE_INSTANCE_SETTERS__";
(Y = Fe()[It]) || (Y = Fe()[It] = []), Y.push((e) => M = e), at = (e) => {
  Y.length > 1 ? Y.forEach((t) => t(e)) : Y[0](e);
};
const Je = (e) => {
  at(e), e.scope.on();
}, hn = () => {
  M && M.scope.off(), at(null);
};
function co(e) {
  return e.vnode.shapeFlag & 4;
}
function lo(e) {
  if (e.exposed)
    return e.exposeProxy || (e.exposeProxy = new Proxy(gr(ur(e.exposed)), {
      get(t, n) {
        if (n in t)
          return t[n];
        if (n in oe)
          return oe[n](e);
      },
      has(t, n) {
        return n in t || n in oe;
      }
    }));
}
const uo = /(?:^|[-_])(\w)/g, ao = (e) => e.replace(uo, (t) => t.toUpperCase()).replace(/[-_]/g, "");
function ft(e, t = !0) {
  return w(e) ? e.displayName || e.name : e.name || t && e.__name;
}
function _n(e, t, n = !1) {
  let o = ft(t);
  if (!o && t.__file) {
    const r = t.__file.match(/([^/\\]+)\.\w+$/);
    r && (o = r[1]);
  }
  if (!o && e && e.parent) {
    const r = (s) => {
      for (const i in s)
        if (s[i] === t)
          return i;
    };
    o = r(
      e.components || e.parent.type.components
    ) || r(e.appContext.components);
  }
  return o ? ao(o) : n ? "App" : "Anonymous";
}
function gn(e) {
  return w(e) && "__vccOpts" in e;
}
function Ae(e) {
  return !!(e && e.__v_isShallow);
}
function fo() {
  if (process.env.NODE_ENV === "production" || typeof window > "u")
    return;
  const e = { style: "color:#3ba776" }, t = { style: "color:#0b1bc9" }, n = { style: "color:#b62e24" }, o = { style: "color:#9d288c" }, r = {
    header(l) {
      return N(l) ? l.__isVue ? ["div", e, "VueInstance"] : v(l) ? [
        "div",
        {},
        ["span", e, d(l)],
        "<",
        c(l.value),
        ">"
      ] : J(l) ? [
        "div",
        {},
        ["span", e, Ae(l) ? "ShallowReactive" : "Reactive"],
        "<",
        c(l),
        `>${U(l) ? " (readonly)" : ""}`
      ] : U(l) ? [
        "div",
        {},
        ["span", e, Ae(l) ? "ShallowReadonly" : "Readonly"],
        "<",
        c(l),
        ">"
      ] : null : null;
    },
    hasBody(l) {
      return l && l.__isVue;
    },
    body(l) {
      if (l && l.__isVue)
        return [
          "div",
          {},
          ...s(l.$)
        ];
    }
  };
  function s(l) {
    const f = [];
    l.type.props && l.props && f.push(i("props", p(l.props))), l.setupState !== P && f.push(i("setup", l.setupState)), l.data !== P && f.push(i("data", p(l.data)));
    const h = u(l, "computed");
    h && f.push(i("computed", h));
    const S = u(l, "inject");
    return S && f.push(i("injected", S)), f.push([
      "div",
      {},
      [
        "span",
        {
          style: o.style + ";opacity:0.66"
        },
        "$ (internal): "
      ],
      ["object", { object: l }]
    ]), f;
  }
  function i(l, f) {
    return f = C({}, f), Object.keys(f).length ? [
      "div",
      { style: "line-height:1.25em;margin-bottom:0.6em" },
      [
        "div",
        {
          style: "color:#476582"
        },
        l
      ],
      [
        "div",
        {
          style: "padding-left:1.25em"
        },
        ...Object.keys(f).map((h) => [
          "div",
          {},
          ["span", o, h + ": "],
          c(f[h], !1)
        ])
      ]
    ] : ["span", {}];
  }
  function c(l, f = !0) {
    return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", o, l] : N(l) ? ["object", { object: f ? p(l) : l }] : ["span", n, String(l)];
  }
  function u(l, f) {
    const h = l.type;
    if (w(h))
      return;
    const S = {};
    for (const V in l.ctx)
      a(h, V, f) && (S[V] = l.ctx[V]);
    return S;
  }
  function a(l, f, h) {
    const S = l[h];
    if (_(S) && S.includes(f) || N(S) && f in S || l.extends && a(l.extends, f, h) || l.mixins && l.mixins.some((V) => a(V, f, h)))
      return !0;
  }
  function d(l) {
    return Ae(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
  }
  window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
}
function po() {
  fo();
}
process.env.NODE_ENV !== "production" && po();
const ho = /* @__PURE__ */ Hr({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: Object,
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    button: {
      type: Boolean,
      default: !1
    },
    allowUncheck: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const n = e, o = n.keyName || "label", r = n.valueName || "value";
    Br(() => {
      if (!n.name)
        throw new Error();
      n.api ? n.api().then((u) => {
        i.value = u.map((a) => ({ label: a[o], value: a[r] }));
      }) : n.list.length && (i.value = n.list.map((u) => ({ label: u[o], value: u[r], disabled: u.disabled }))), s.value = [void 0, null].includes(n.modelValue) ? void 0 : n.modelValue;
    });
    const s = bt(), i = bt([]);
    Fr(() => n.modelValue, (u) => {
      s.value = u;
    });
    function c(u) {
      t("update:modelValue", u), t("change", u);
    }
    return (u, a) => {
      const d = Pe("t-radio-group"), l = Pe("t-radio-button"), f = Pe("t-form-item");
      return ee(), we(f, Oe(n.formAttrs, {
        help: n.help,
        label: n.label,
        rules: n.rules,
        name: n.name
      }), {
        default: Te(() => [
          n.button ? (ee(), we(d, Oe({ key: 1 }, u.$attrs, {
            disabled: n.disabled,
            "allow-uncheck": n.allowUncheck,
            modelValue: s.value,
            "onUpdate:modelValue": a[1] || (a[1] = (h) => s.value = h),
            onChange: c
          }), {
            default: Te(() => [
              (ee(!0), ro(lt, null, Jr(i.value, (h, S) => (ee(), we(l, {
                value: h.value
              }, {
                default: Te(() => [
                  dn(Tn(h.label), 1)
                ]),
                _: 2
              }, 1032, ["value"]))), 256))
            ]),
            _: 1
          }, 16, ["disabled", "allow-uncheck", "modelValue"])) : (ee(), we(d, Oe({ key: 0 }, u.$attrs, {
            disabled: n.disabled,
            modelValue: s.value,
            "onUpdate:modelValue": a[0] || (a[0] = (h) => s.value = h),
            "allow-uncheck": "",
            name: n.name,
            options: i.value,
            onChange: c
          }), null, 16, ["disabled", "modelValue", "name", "options"]))
        ]),
        _: 1
      }, 16, ["help", "label", "rules", "name"]);
    };
  }
}), go = {
  install(e) {
    e.component("ProFormRadio", ho);
  }
};
export {
  go as default
};
